home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / mkmkfiles.imake < prev    next >
Text File  |  1996-11-11  |  1KB  |  44 lines

  1. #!/bin/csh -f
  2. #
  3. # Let user know what's going on...
  4. #
  5. set verbose
  6. #
  7. mv -f Makefile Makefile.bak >& /dev/null
  8. #
  9. # Unfortunately, some systems vary where they find imake, imake's config
  10. # files, and/or xmkmf.  You may need to be clever to get Makefiles
  11. # generated if your system is non-standard.  The following tries its best
  12. # to generate the Makefiles for you...
  13. #
  14. if ( -d /usr/lib/X11/config) then
  15.   if ( -x /usr/bin/X11/imake ) then
  16.     # Things are in standard places
  17.     /usr/bin/X11/imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=.
  18.   else
  19.     # Hope imake is on your path!
  20.     imake -DUseInstalled -I/usr/lib/X11/config -DTOPDIR=.
  21.   endif
  22. else # Try non-standard places vendor locations
  23.   # Look for IBM's non-standard placement of imake
  24.   if ( -d /usr/lpp/X11/Xamples/config) then
  25.     if ( -x /usr/lpp/X11/Xamples/config/imake ) then
  26.       # Things are in non-standard IBM AIX places
  27.       /usr/lpp/X11/Xamples/config/imake -DUseInstalled -I/usr/lpp/X11/Xamples/config -DTOPDIR=.
  28.     else
  29.       # Hope imake is on your path!
  30.       imake -DUseInstalled -I/usr/lpp/X11/Xamples/config -DTOPDIR=.
  31.     endif
  32.   else
  33.     # Look for Sun's non-standard placement of imake and xmkmf
  34.     if ( -x /usr/openwin/bin/xmkmf ) then
  35.       /usr/openwin/bin/xmkmf
  36.     else
  37.       # Hope xmkmf is on your path!
  38.       xmkmf     
  39.     endif
  40.   endif
  41. endif
  42. make Makefiles
  43. make depend
  44.